package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 金华录取查询
 *
 * @author wangtao
 * @since 2023-03-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_jhjy_query_sync")
@Schema(name = "EduJhjyQuerySync", title = "金华录取查询", description = "金华录取查询实体类")
public class EduJhjyQuerySync extends Model<EduJhjyQuerySync> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "jhjyQueryId", title = "查询id")
    @TableId(value = "jhjy_query_id", type = IdType.ASSIGN_ID)
    private String jhjyQueryId;

    @Schema(name = "idcard", title = "证件号码")
    @TableField(value = "idcard")
    private String idcard;

    @Schema(name = "name", title = "姓名")
    @TableField(value = "name")
    private String name;

    @Schema(name = "eduStage", title = "学段")
    @TableField(value = "edu_stage")
    private Integer eduStage;

    @Schema(name = "lqDw", title = "录取教育局")
    @TableField(value = "lq_dw")
    private String lqDw;

    @Schema(name = "createName", title = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", title = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", title = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", title = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Schema(name = "del", title = "逻辑删除标志")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Schema(name = "year", title = "年份")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "syncStatus", title = "同步状态 0 未查询 1 已查询 2 查询失败")
    @TableField(value = "sync_status")
    private String syncStatus;

    @Schema(name = "syncRemarks", title = "同步备注")
    @TableField(value = "sync_remarks")
    private String syncRemarks;

    @Override
    public Serializable pkVal() {
        return this.jhjyQueryId;
    }
}
